<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ taglib prefix="jmesa" uri="http://code.google.com/p/jmesa"%>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>


<html>
<head>
<title>gtdProject list</title>
<script type="text/javascript" src="<c:url value="/static/js/jquery.	jmesa.js" />"></script>
<script type="text/javascript" src="<c:url value="/static/js/jmesa.js" />"></script>
<link rel="stylesheet" href="<c:url value="/static/styles/jmesa.css" />" type="text/css">
<style>
.header {
	 background-color:#444444;color:#FFFFFF
}
</style>
</head>
<body>
<div class="wall">
<a class="btn btn-primary" href="${ctx}/gtd/gtdproject/new"><i class="icon-plus icon-white"></i>增加</a>

 
</div>
<form name="presidentsForm" action="${ctx}/gtd/gtdproject/listpage">

<jmesa:tableModel
                id="gtdProjectTable" 
                items="${gtdProjectList}"
                maxRows="1"
				totalRows="${gtdProjectTable_totalRows}"
                exportTypes="csv,excel"
                maxRowsIncrements="1,8,16,24"
                stateAttr="restore"
                var="bean"
                >
            <jmesa:htmlTable 
                captionKey="presidents.caption" 
                width="600px"
                >		
                <jmesa:htmlRow>	
                    <jmesa:htmlColumn property="name" filterable="false" title="name" />
                       
                    <jmesa:htmlColumn property="description" filterable="false" title="description"/>
                    <jmesa:htmlColumn property="startTime" filterable="false" pattern="MM/yyyy" />
                    <jmesa:htmlColumn property="endTime" filterable="false" pattern="MM/yyyy" />
                </jmesa:htmlRow>
            </jmesa:htmlTable> 
            </jmesa:tableModel>
</form>

	<script type="text/javascript">
			function onInvokeAction(id) {
				 
                $.jmesa.setExportToLimit(id, '');
                var parameterString = $.jmesa.createHiddenInputFieldsForLimitAndSubmit(id);
				 
            }
            function onInvokeExportAction(id) {
                var parameterString = $.jmesa.createParameterStringForLimit(id);
                location.href = '${ctx}/gtd/gtdproject/listpage?' + parameterString;
            }


             

       
        </script>


</body>
</html>